<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="stylesheet"
	href="script/jquery-ui-1.10.4/themes/base/jquery.ui.all.css">
<script src="script/jquery-ui-1.10.4/jquery-1.10.2.js"></script>
<script src="script/jquery-ui-1.10.4/ui/jquery.ui.core.js"></script>
<script src="script/jquery-ui-1.10.4/ui/jquery.ui.widget.js"></script>
<script src="script/jquery-ui-1.10.4/ui/jquery.ui.mouse.js"></script>
<script src="script/jquery-ui-1.10.4/ui/jquery.ui.button.js"></script>
<script src="script/jquery-ui-1.10.4/ui/jquery.ui.draggable.js"></script>
<script src="script/jquery-ui-1.10.4/ui/jquery.ui.position.js"></script>
<script src="script/jquery-ui-1.10.4/ui/jquery.ui.dialog.js"></script>
<script src="<%=basePath%>script/script.js"></script>
<link rel="stylesheet" href="script/jquery-ui-1.10.4/demos/demos.css">
<link rel="stylesheet" href="style/style.css">
<style>
body {
	font-size: 62.5%;
}

label,input {
	display: block;
}

label {
	margin-top: 12px;
	margin-bottom: 10px;
}

input.text {
	width: 95%;
	padding: .4em;
}

fieldset {
	padding: 0;
	border: 0;
	margin-top: 5px;
}

p {
	margin: 0;
	color: red;
}

h1 {
	font-size: 1.2em;
	margin: .6em 0;
}

div#users-contain {
	width: 350px;
	margin: 20px 0;
}

div#users-contain table {
	margin: 1em 0;
	border-collapse: collapse;
	width: 100%;
}

div#users-contain table td,div#users-contain table th {
	border: 1px solid #eee;
	padding: .6em 10px;
	text-align: left;
}

.ui-dialog .ui-state-error {
	padding: .3em;
}

.validateTips {
	border: 1px solid transparent;
	padding: 0.3em;
}

/**去除jquery ui close按钮**/
.no-close .ui-dialog-titlebar-close {
	display: none;
}

.newClass {
	color: #000;
}

.errorMessage {
	list-style-type: none;
}
</style>
<script type="text/javascript">
	//刷新父窗口防止登录页面嵌套
	if (window.parent != window) {
		//true表示浏览器重新从服务器请求资源,在http请求头中不会包含缓存标记。
		window.parent.location.reload(true);
	}

	$(function() {
		init_login_page();
	});
</script>
<title>登录页面</title>
</head>
<body>

	<div id="dialog-form" title="登录">

		<form action="user_login.action" method="post">
			<fieldset>
				<label for="name">账户</label> <input type="text" name="name"
					id="name" class="text ui-widget-content ui-corner-all" /> <label
					for="password">密码</label> <input type="password" name="password"
					id="password" value="" class="text ui-widget-content ui-corner-all" />
			</fieldset>
			<!-- Cookies功能，提示请勿在公共电脑勾选此项 -->
			<div style="text-align: right;padding-top: 5px;">
				<span> <input type="radio" value="save" id="ifSave"
					style="display: inline-block;" /> <label for="ifSave"
					style="display: inline;">三天内自动登录</label></span>
			</div>
		</form>
		<p class="validateTips">
			&nbsp;
			<s:property value="fieldErrors.error[0]" />
		</p>
	</div>
</body>
</html>
